﻿using CsvHelper.Configuration.Attributes;
using System;

namespace Lottery.Model
{
    public class StaffInfo
    {
        private String jobNo;

        public String JobNo
        {
            get { return jobNo; }
            set
            {
                if (string.IsNullOrEmpty(value))
                    jobNo = value;
                else
                    jobNo = value.Trim().ToUpper();
            }
        }
        private String name;

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String dept;

        public String Dept
        {
            get { return dept; }
            set
            {
                if (string.IsNullOrEmpty(value))
                    dept = value;
                else
                    dept = value.Trim().ToUpper();
            }
        }

        
        private String company;

        
        public string StaffIndex { get => staffIndex; set => staffIndex = value; }
        public string Company
        {
            get => company; set
            {
                if (string.IsNullOrEmpty(value))
                    company = value;
                else
                    company = value.Trim().ToUpper();
            }
        }

        [Ignore]
        private string staffIndex ;

    }
}
